Page({
    data: {
        list:[],
        total_jf:'',
        backgroundData: 'transparent',
    },

    onLoad(options) {
        this.getJifenList();
    },

    getJifenList() {
        this.request({
            url: 'user/money/jf/index',
        }).then(res => {
            console.log(res.data.total_jf);
            this.setData({
                total_jf: res.data.total_jf,
                list:res.data.data
            });
        });
    },

    onPageScroll(e) {
        if (e.scrollTop > 1) {
            this.setData({
                backgroundData: '#FA4146',
            });
        } else {
            this.setData({
                backgroundData: 'transparent',
            });
        }
    },
});
